home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 06 Rabin / msg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-10  |  855 b   |  34 lines

  1. /* Copyright (C) Steve Rabin, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Steve Rabin, 2001"
  9.  */
  10.  
  11. #include "msg.h"
  12.  
  13.  
  14. MSG_Object::MSG_Object( void )
  15. {
  16.     m_Name = MSG_NULL;
  17.     m_Sender = INVALID_OBJECT_ID;
  18.     m_Receiver = INVALID_OBJECT_ID;
  19.     m_State = -1;
  20.     m_DeliveryTime = 0.0f;
  21. }
  22.  
  23.  
  24. MSG_Object::MSG_Object( float deliveryTime, MSG_Name name, objectID sender, objectID receiver, int state )
  25. {
  26.     SetDeliveryTime( deliveryTime );
  27.     SetMsgName( name );
  28.     SetSender( sender );
  29.     SetReceiver( receiver );
  30.     SetMsgState( state );
  31.     SetDelivered( false );
  32. }
  33.  
  34.